//
// Created by admin on 2024/7/30.
//

#ifndef _HAL_GPIO_H
#define _HAL_GPIO_H

#include "stdint.h"


#ifdef __cplusplus
extern "C" {
#endif

#define IO_A    (0)
#define IO_B    (16)
#define IO_C    (32)
#define IO_D    (48)
#define IO_E    (64)
#define IO_F    (80)


void pinMode(uint32_t pin, uint32_t mode);
void pinModePull(uint32_t pin, uint32_t mode, uint32_t pull);
void digitalWrite(uint32_t pin, uint8_t val);
int digitalRead(uint32_t pin);
void digitalToggle(uint32_t pin);

#ifdef __cplusplus
}   // extern "C"{
#endif

#endif //_HAL_GPIO_H
